package edu.rutgers.moko;

public class ServletUtil {
	public static String showhideJs(){
		return "<script language=\"javascript\">\n" +
		"var state = 'none';\n" +
		"function showhide(prop, layer_ref) {\n" +
		"var mode = document.getElementById (prop).value;\n"+
		"if (mode == 'PROTECTED') {\n" +
		"	state = '';\n" +
		"} else {\n" +
		"	state = 'none';\n" +
		"}\n" +
		"if (document.all) { //IS IE 4 or 5 (or 6 beta)\n" +
		"	eval( \"document.all.\" + layer_ref + \".style.display = state\");\n" +
		"}\n" +
		"if (document.layers) { //IS NETSCAPE 4 or below\n" +
		"	document.layers[layer_ref].display = state;\n" +
		"}\n" +
		"if (document.getElementById &&!document.all) {\n" +
		"	hza = document.getElementById(layer_ref);\n" +
		"	hza.style.display = state;\n" +
		"}\n" +
		"}\n" +
		"</script> ";
	}
	
	public static String css(){
		return "<style>" +
				"body {margin:0;	font-family:\"Trebuchet MS\", Arial, Verdana;font-size:0.74em;color:#555555;background-color:#FFFFFF;text-align:left;}\n" +
				"input {background-color:#FFFFFF;padding:3px;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;color:#ffffff;border:1px solid #728c40;background-color:#94ae62;margin-bottom:2px;}\n" +
				"select{background-color:#FFFFFF;padding:3px;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;color:#ffffff;border:1px solid #728c40;background-color:#94ae62;margin-bottom:2px;}\n" +
				"input[type=submit] {background-color:#FFFFFF;padding:3px;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;color:#666666;border:1px solid #728c40;margin-bottom:2px;}\n" +
				"a {color:#4D87CE;font-weight:bold;text-decoration:none;}\n" +
				"a:hover {color:#2a65ad;\n}" +
				"h1 {font-family:\"Century Gothic\", \"Trebuchet MS\", \"Arial Narrow\", Arial, sans-serif;font-size:25px;text-transform:uppercase;font-weight:normal;border-bottom:1px solid #eeeeee;color:#728c40;}\n" +
				"h2 {font-family:\"Century Gothic\", \"Trebuchet MS\", \"Arial Narrow\", Arial, sans-serif;font-size:15px;text-align:left;font-weight:bold;margin:0;padding:4;color:#000000;}\n" +
				"table{border-collapse:collapse;border:1px solid #eeeeee;}"+
				"table.border caption {font: 2em/2em Arial, Helvetica, sans-serif;text-align: left;text-indent: 10px;background: url(bg_caption.jpg) right top;height: 45px;color: #FFAA00;}"+
				"table.border thead th {height: 30px;color: #728c40;font-family:\"Century Gothic\", \"Trebuchet MS\", \"Arial Narrow\", Arial, sans-serif;font-size:15px;padding: 0px 7px;margin: 20px 0px 0px;text-align: center;border-right: 1px solid #eeeeee;	}"+
				"table.border tbody th {font-size: 11px;line-height: 1.4em;font-family:\"Century Gothic\", \"Trebuchet MS\", \"Arial Narrow\", Arial, sans-serif;color: #728c40;padding:5px 3px;border-top: 1px solid #eeeeee;border-right: 1px solid #DDDDDD;text-align: left;vertical-align: top;}"+
				"table.border tbody td {font-size: 11px;line-height: 1.4em;font-family:\"Century Gothic\", \"Trebuchet MS\", \"Arial Narrow\", Arial, sans-serif;color: #555555;padding: 2px 2px;border-top: 1px solid #eeeeee;border-right: 1px solid #DDDDDD;vertical-align: top;}"+
				"#footer {width:100%;background-color:#b6cf84;border-top:1px solid #d8efa6;border-bottom:5px solid #94ae62;padding-top:5px;padding-bottom: 0;color:#FFFFFF;}"+
				"#footer a {color:#006600;}" +
				"#footer a:hover {color:#009900;}"+
				"table.border a {color: #777777;font-weight: bold;text-decoration: underline;}"+
				"table.border a:hover {color: #F8A704;text-decoration: underline;}"+
				"</style>";
	}

}
